<?php return array(
	'news'=> array(
		'type' => CAuthItem::TYPE_OPERATION,
		'description' => 'Save home to database',
		'bizRule' => null,
		'data' => null
	),
	'save_home'=> array(
		'type' => CAuthItem::TYPE_OPERATION,
		'description' => 'Save home to database',
		'bizRule' => null,
		'data' => null
	),
	'update_home'=> array(
		'type' => CAuthItem::TYPE_OPERATION,
		'description' => 'Update home to database',
		'bizRule' => null,
		'data' => null
	),
	'delete_home'=> array(
		'type' => CAuthItem::TYPE_OPERATION,
		'description' => 'Delete home to database',
		'bizRule' => null,
		'data' => null
	),
	'home_edit'=> array(
		'type' => CAuthItem::TYPE_OPERATION,
		'description' => 'Work with homes',
		'bizRule' => null,
		'children' => array(
			'save_home', 'update_home' // унаследуемся от гостя
		),
		'data' => null
	),
	'home_admin'=> array(
		'type' => CAuthItem::TYPE_OPERATION,
		'description' => 'Work with homes',
		'bizRule' => null,
		'children' => array(
			'delete_home','save_home', 'update_home' // унаследуемся от гостя
		),
		'data' => null
	),
	'pay'=> array(
		'type' => CAuthItem::TYPE_OPERATION,
		'description' => 'Work with pays',
		'bizRule' => null,
		'data' => null
	),
	'agent' => array(
		'type' => CAuthItem::TYPE_ROLE,
		'description' => 'Guest',
		'bizRule' => null,
		'data' => null
	),
	'guest' => array(
        'type' => CAuthItem::TYPE_ROLE,
        'description' => 'Guest',
        'bizRule' => null,
        'data' => null
    ),
    'owner' => array(
        'type' => CAuthItem::TYPE_ROLE,
        'description' => 'User',
        'children' => array(
            'guest','home_edit' // унаследуемся от гостя
        ),
        'bizRule' => null,
        'data' => null
    ),
    'content' => array(
        'type' => CAuthItem::TYPE_ROLE,
        'description' => 'Moderator',
        'children' => array(
            'owner', 'news',         // позволим модератору всё, что позволено пользователю
        ),
        'bizRule' => null,
        'data' => null
    ),
	'administrator' => array(
				'type' => CAuthItem::TYPE_ROLE,
				'description' => 'Administrator',
				'children' => array(
						'content','home_admin'         // позволим админу всё, что позволено модератору
				),
				'bizRule' => null,
				'data' => null
	),
    'admin' => array(
        'type' => CAuthItem::TYPE_ROLE,
        'description' => 'Administrator',
        'children' => array(
            'administrator'         // позволим админу всё, что позволено модератору
        ),
        'bizRule' => null,
        'data' => null
    ),
);